<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>双向数据绑定</title>
    <link rel="stylesheet" href="d.css">
    <script src="https://unpkg.com/vue"></script>
</head>
<body>

<div id="vue-app">
    <h1>双向数据绑定/input / select / textarea</h1>
    <label>姓名</label>
    <input  type="text" v-model="name">
    <span>{{name}}</span>
    <label>年龄</label>
    <input ref="age" type="text" v-model="age">
    <span>{{age}}</span>
</div>
<script src="d.js"></script>

</body>
</html>